-
-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi language support #282
Multi language support #282
Conversation
I'll take some time soon to go through this and all other PR's. I've been very busy recently, but I will be looking into it I promise! |
Could you resolve the merge conflicts please so I can go over the review again |
Oh my bad, in 10 mins. |
No rush, it'll probably take a bit of time for me to review this properly. There have also been some changes and other PR's that were merged earlier today so those will need to have the translations added as well. |
bc60348
to
f448464
Compare
…vMenu into language-support
…he amount of code needed greatly
Language settings - Multi language support by @QuadrupleTurbo As seen here on: TomGrobbe#282
Added
vmenuclient dumplang
(set to be only for admins inpermissions.cfg
).Usage
Setting a default language
In your
fxmanifest.lua
, set the default language for the client by settingdefault_language
to your preferred language from theconfig/languages
folder. Here's an example:Adding new languages
To add languages, dump the default language by executing the command
vmenuclient dumplang
client side, locate the template in yourconfig/languages
folder which will be namedTEMPLATE.json
, renameTEMPLATE.json
to whatever language you want, then in yourfxmanifest.lua
edit thelanguages
convar for example:Editing the language config
Format
Example